package com.dcy.znoa.service.attendance;

import com.dcy.znoa.common.exception.BusinessException;
import com.dcy.znoa.common.util.pojo.JsonForList;
import com.dcy.znoa.controller.attendance.model.attRule.SelectAttRuleModel;
import com.dcy.znoa.domain.attendance.AttRule;

import java.lang.reflect.InvocationTargetException;
import java.text.ParseException;
import java.util.List;

public interface AttRuleService {

    Integer insert(AttRule attRule) throws BusinessException;

    Integer updateById(AttRule attRule) throws BusinessException;

    Integer validFlag(AttRule attRule) throws BusinessException, InvocationTargetException, IllegalAccessException;

    Integer delete(Long attRuleId) throws BusinessException;

    JsonForList queryListMapper(SelectAttRuleModel model);

    AttRule queryByOperId(Long operId) throws BusinessException, ParseException;

    AttRule getById(Long attRuleId);
}
